/*
 * Copyright (C) 2022 Alibaba Group Holding Limited
 */

#include <aos/aos.h>
#include <cx_auth_manager.h>
#include "app_main.h"

int main(void) {
  board_yoc_init();

  cx_auth_config_t auth_config = {
    .storage = {
      .otp_offset = 0,
      .nv_uri = "flash:partition:cxrot",
    },
    .uart = {
      .id = 0,
      .baud_rate = 115200,
    }
  };
  cx_auth_factory_grant(&auth_config);

  while (1) {
    aos_msleep(3000);
  }
}
